<template>
  <div class="wrapper">
    <swiper :options="swiperOption">
      <!-- //导入图片数据数组 -->
      <swiper-slide> slide1 </swiper-slide>
      <swiper-slide> slide2 </swiper-slide>
      <swiper-slide> slide3 </swiper-slide>
      <swiper-slide> slide4 </swiper-slide>
      <swiper-slide> slide5 </swiper-slide>
      <swiper-slide> slide6 </swiper-slide>
      <swiper-slide> slide7 </swiper-slide>
      <swiper-slide> slide8 </swiper-slide>
      <!-- //分页器 -->
    </swiper>
  </div>
</template>

<script>
export default {
  name: "homeSwiper",
  data() {
    return {
      swiperOption: {
        slidesPerView: 4,
        slidesPerGroup: 4,
      },
    };
  },
  props: {
    list: Array,
  },
};
</script>

<style  scoped>
/* .wrapper >>> .swiper-pagination-bullet-active 
        background: #fff
    .wrapper
        background :#eee
        overflow :hidden
        width :100%
        height :0
        padding-bottom:30.48%
        .swiper-img
            width:100% */
</style>
